package com.fauks.ssm.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

//如果接口入参为一个对象，使用该注解描述参数
@ApiModel(value = "personVO", description = "Person VO")
public class Person {
    @ApiModelProperty("[必填] 用户名称")
    public String name;
    @ApiModelProperty("[必填，注：必须接收数字类型] 用户性别（0 男 1 女）")
    public String sex;
    @ApiModelProperty("[非必填] 用户地址")
    public String address;

    public Person(String name, String sex, String address) {
        this.name = name;
        this.sex = sex;
        this.address = address;
    }
}
